const mongoose=require("mongoose")
mongoose.connect('mongodb://localhost:27017/zorvideo')

var userSchema = mongoose.Schema({
  account:{type:String},
  password:{type:String},
  nickName:{type:String},
  avatar:{type:String,default:'./public/images/avatar'},
  status:{type:Number,default:1},
  login_time:{type:Number},
  add_time:{type:Number}
})

module.exports={User:mongoose.model("User",userSchema,"users")}